/*
package com.bl.feignclient;


import com.bl.domain.Store;
import feign.hystrix.FallbackFactory;
import org.springframework.stereotype.Component;

@Component
public class StoreFallbackFactory implements FallbackFactory<StoreFeignClient> {

    // 创建降级类
    @Override
    public StoreFeignClient create(Throwable throwable) {
        return new StoreFeignClient() {
            @Override
            public String add(Store store) {
                try {
                    return new String("操作成功");
                } catch (Exception e) {
                    e.printStackTrace();
                    return new String("操作失败");
                }
            }
        };

    }
}*/
